﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InjectionModule
{
    /// <summary>
    /// Inheritted from MarshalByRefObject
    /// </summary>
    public class Order:MarshalByRefObject 
    {
        public int ID
        {
            get;
            set;
        }

        public List<Product> Products
        {
            get;
            set;
        }

        public Order()
        {
            ID = 0;
            Products = new List<Product>();
        }

        public void AddProduct(Product product)
        {
            Products.Add(product);
        }
    }
}
